import { FormGroup } from '@angular/forms';

export function inValidFormTip(form: FormGroup) {
  for (const key in form.controls) {
    if (Object.prototype.hasOwnProperty.call(form.controls, key)) {
      // console.log('controls::', form.controls[key]);
      form.controls[key].markAsDirty();
      form.controls[key].updateValueAndValidity({ onlySelf: true });
    }
  }
}
